<template>
  <div class="myactive">
    <div class="myactive-title">
      <h2>志愿服务</h2>
    </div>
    <div class="tabs">
      <text class="text active">精选活动</text>
      <text class="text">助老助残</text>
      <text class="text">环境保护</text>
      <text class="text">社区服务</text>
    </div>
    <div class="active-info">
      <div class="active-info-list-right">
        <div class="card">
          <div class="address">
            <div class="icon">
              <img src="../../../static/tabs/dingwei.png" alt="">
            </div>
            <span>西湖区</span>
          </div>
          <img src="../../../static/tabs/picture.png" alt="">
          <span>青山湖周边环境保护活动，招募学生50名</span>
          <div class="active-detial">
            <div class="user-info">
              <image class="user-info-img" src="../../../static/tabs/picture.png" mode="scaleToFill" />
              <span>冯小小</span>
            </div>
            <div class="goods">
              <image class="goos-img" src="../../../static/tabs/aixin.png" mode="scaleToFill" />
              <span>1027</span>
            </div>
          </div>
        </div>
        <div class="card">
          <div class="address">
            <div class="icon">
              <img src="../../../static/tabs/dingwei.png" alt="">
            </div>
            <span>西湖区</span>
          </div>
          <img src="../../../static/tabs/picture.png" alt="">
          <span>青山湖周边环境保护活动，招募学生50名</span>
          <div class="active-detial">
            <div class="user-info">
              <image class="user-info-img" src="../../../static/tabs/picture.png" mode="scaleToFill" />
              <span>冯小小</span>
            </div>
            <div class="goods">
              <image class="goos-img" src="../../../static/tabs/aixin.png" mode="scaleToFill" />
              <span>1027</span>
            </div>
          </div>
        </div>
      </div>
      <div class="active-info-list-left">
        <div class="card left">
          <div class="address">
            <div class="icon">
              <img src="../../../static/tabs/dingwei.png" alt="">
            </div>
            <span>西湖区</span>
          </div>
          <img src="../../../static/tabs/picture.png" alt="">
          <span>青山湖周边环境保护活动，招募学生50名</span>
          <div class="active-detial">
            <div class="user-info">
              <image class="user-info-img" src="../../../static/tabs/picture.png" mode="scaleToFill" />
              <span>冯小小</span>
            </div>
            <div class="goods">
              <image class="goos-img" src="../../../static/tabs/aixin.png" mode="scaleToFill" />
              <span>1027</span>
            </div>
          </div>
        </div>
        
      </div>

    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss">
.myactive {
  margin-top: 20px;
  padding: 20px 10px 25px 20px;
  border-radius: 10px;
  background-color: #fff;
  box-sizing: border-box;
  margin-bottom: 15px;

  .tabs {
    display: flex;
    justify-content: space-evenly;
    font-size: 22px;
    position: relative;
    margin-top: 30px;

    .text {
      margin: 0 20px;
      position: relative;
    }

    .active {
      &::after {
        content: "";
        width: 46px;
        height: 4px;
        transform: translate(-50%);
        background-color: #3e96d5;
        position: absolute;
        left: 50%;
        top: 35px;
      }
    }
  }

  .active-info {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    // flex-wrap: wrap;
    // flex-direction: row;
    
    .card {
      display: flex;
      flex-direction: column;
      width: 337px;
      margin-right: 15px;
      margin-bottom: 20px;
      position: relative;

      .address {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 50px;
        width: 110px;
        background-color: #333b38;
        position: absolute;
        top: 10px;
        left: 10px;
        // line-height: 110px;
        .icon{
          box-sizing: border-box;
          width: 30px;
          height: 30px;
          color: #fff;
          // margin:0 0px 0px 10px ;
          img {
            width: 100%;
            height: 100%;
            color: #fff;
          }
        }
        span{
          margin-right: 10px;
          font-size: 16px;
          color: #fff;
        }
      }
      // background-color: red;
      img {
        width: 337px;
        height: 328px;
      }

      .active-detial {
        display: flex;
        justify-content: space-between;
        margin-top: 15px;

        .user-info {
          margin-right: 13px;
          display: flex;
          justify-content: space-between;
          align-items: center;

          .user-info-img {
            margin-right: 16px;
            width: 37px;
            height: 37px;
            border-radius: 37px;
          }

          span {
            font-size: 16px;
            ;
          }
        }

        .goods {
          margin-right: 13px;
          display: flex;
          justify-content: space-between;
          align-items: center;

          .goos-img {
            margin-right: 15px;
            width: 50px;
            // background-color: red;
            height: 50px;
          }

          span {
            font-size: 16px;
          }
        }
      }
    }
    .active-info-list-right {
      flex: 1;
    }


    .active-info-list-left {
      flex: 1;
      .left{
        img{
          height: 500px;
        }
      }
    }
  }
}
</style>